import httpUtils from "@/core/utils/http.utils";
const urls = {
  'sourceRate': `/api/upms/diskCheck/sourceRate`,
  'dickInfo': `/api/upms/diskCheck/dickInfo`,
  'exportData': `/api/upms/diskCheck/exportData`,
  'convertData': `/api/upms/diskCheck/convertData`,
  'getLogSpaceSettings': `/api/upms/diskCheck/getLogSpaceSettings`,
  'setLogSpaceSettings': `/api/upms/diskCheck/setLogSpaceSettings`,
};
// service methods
const diskCheckApi = {
  sourceRate(param) {
    return httpUtils.getEncrypt(urls.sourceRate, param);
  },
  dickInfo(param) {
    return httpUtils.getEncrypt(urls.dickInfo, param);
  },
  exportData(param) {
    return httpUtils.getEncrypt(urls.exportData, param);
  },
  convertData(param) {
    return httpUtils.getEncrypt(urls.convertData, param);
  },
  getLogSpaceSettings(param) {
    return httpUtils.getEncrypt(urls.getLogSpaceSettings, param);
  },
  setLogSpaceSettings(param) {
    return httpUtils.postEncrypt(urls.setLogSpaceSettings , param);
  },
}

export default diskCheckApi;
